﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Abp.Domain.Entities.Auditing;

namespace FwProject.ShoppingMall.Shop
{
    /// <summary>
    /// 商品分类表
    /// </summary>
    [Table("ShopType")]
    public class ShopType: FullAuditedEntity<Guid>
    {
        public const int StringLength = 200;
        /// <summary>
        /// 户级编号
        /// </summary>
        public Guid? Parentid { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        [Required]
        [StringLength(StringLength)]
        public string TypeName { get; set; }
        /// <summary>
        /// 产品类型id
        /// </summary>
        public Guid ProductTypeid { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Isactive { get; set; } = true;
        /// <summary>
        /// 分类图片
        /// </summary>
        public string Piclogo { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [Required]
        public int Orders { get; set; }
    }
}
